﻿using System.Configuration;


namespace Framework.Email.Configuration
{
    public class EmailServiceConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("from", DefaultValue = "zhelezko1990@gmail.com")]
        public string FromEmail
        {
            get { return ((string)(base["from"])); }
            set { base["from"] = value; }
        }

        [ConfigurationProperty("templateNames")]
        public EmailTemplatesCollection EmailTemplateNames
        {
            get { return base["templateNames"] as EmailTemplatesCollection; }
        }

    }
}
